From: Andrew Cooper Date: Fri, 24 Jan 2014 18:28:11 +0000 (+0000) Subject: minios: Correct HYPERVISOR_physdev_op() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5643 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=3c80caee183124b2a0d1f7e0dae062fd794d6321;p=xen.git minios: Correct HYPERVISOR_physdev_op() A physdev_op is a two argument hypercall, taking a command parameter and an optional pointer to a structure. Signed-off-by: Andrew Cooper CC: Stefano Stabellini Acked-by: Samuel Thibault Acked-by: Ian Campbell --- diff --git a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h index ef52ecdd8f..dcfbe413f0 100644 --- a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h +++ b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h @@ -255,9 +255,9 @@ HYPERVISOR_console_io( static inline int HYPERVISOR_physdev_op( - void *physdev_op) + int cmd, void *physdev_op) { - return _hypercall1(int, physdev_op, physdev_op); + return _hypercall2(int, physdev_op, cmd, physdev_op); } static inline int diff --git a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h index 513d74e09f..7083763ad7 100644 --- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h +++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h @@ -256,9 +256,9 @@ HYPERVISOR_console_io( static inline int HYPERVISOR_physdev_op( - void *physdev_op) + int cmd, void *physdev_op) { - return _hypercall1(int, physdev_op, physdev_op); + return _hypercall2(int, physdev_op, cmd, physdev_op); } static inline int